<template>
  <div class="header">
    <slot name="back"></slot>
    <div class="title">
      {{ title }}
    </div>
    <slot name="content"></slot>
  </div>
</template>

<script>
export default {
  props: ['title']
}
</script>

<style lang="less" scoped>
.header {
  height: 50px;
  background-color: orange;
  line-height: 50px;

  .title {
    text-align: center;
    font-size: 18px;
    color: aliceblue;
  }
  .back {
    position: absolute;
    color: aliceblue;
    font-size: 17px;
    left: 5px;
  }
}
</style>
